{% extends 'blog/blog.html' %}

{% block content %}
      {% for entry in entries %}
      {{ entry_key }}
      <div id="{{ entry.id }}" class="entry">
        <h2>{{ entry.title }}</h2>
        <a href="/entry/{{ entry.id }}">view</a><br/>
        {{ entry.body|safe }}
        
        <div class="categories">
          Posted in:
          <ul>
          {% for category in entry.categories %}
            <li>{{ category.name }}</li>
          {% endfor %}
          </ul>
        </div>
      </div>
      {% endfor %}
{% endblock content %}